package cn.design.realize;

/**
 * @author dlq
 * @description
 *      抽象同事类(Colleague)角色：定义出中介者到同事对象的接口。同事对象只知道中介者而不知道其余的同事对象
 * @date 2020/10/13 10:32
 * @since 1.0
 */
public abstract class ColleaguePerson {
    protected String  name;
    protected Mediator mediator;
    public ColleaguePerson(String name,Mediator mediator){
        this.name = name;
        this.mediator = mediator;
    }
    /**
     * @description 和中介取得联系方法
     * @param
     * @return void
     * @author dlq
     * @date 2020/10/13 10:42
     */
    public abstract void constact(String msg);


    public abstract void getMessage(String msg);
}
